3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to create and manipulate translate transforms. A translate transform translates an object along the x , y , and z axes by specified values.
You can use the Q3TranslateTransform_New function to create a new translate transform.
TQ3TransformObject Q3TranslateTransform_New (
const TQ3Vector3D *translate);
The Q3TranslateTransform_New function returns, as its function result, a reference to a new transform object of type kQ3TransformTypeTranslate using the data passed in the translate parameter. The transform translates an object by the values in translate->x , translate->y , and translate->z , respectively. The data you pass in the translate parameter is copied into internal QuickDraw 3D data structures. If QuickDraw 3D cannot allocate memory for those structures, Q3TranslateTransform_New returns the value NULL .
You can use the Q3TranslateTransform_Submit function to submit a translate transform without creating an object or allocating memory.
TQ3Status Q3TranslateTransform_Submit (
const TQ3Vector3D *translate,
TQ3ViewObject view);
You can use the Q3TranslateTransform_Get function to query the private data stored in a translate transform.
TQ3Status Q3TranslateTransform_Get (
TQ3TransformObject transform,
TQ3Vector3D *translate);
You can use the Q3TranslateTransform_Set function to set new private data for a translate transform.
TQ3Status Q3TranslateTransform_Set (
TQ3TransformObject transform,
const TQ3Vector3D *translate);
Previous | QD3D Book | Overview | Chapter Contents | Next |